package pokerbot.entities;

public class Player {
    
    private String nickname;
    private double balance;
    private final int position;
    private Hand hand;

    public Player(String nickname, double balance, int position) {
        this.nickname = nickname;
        this.balance = balance;
        this.position = position;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int getPosition() {
        return position;
    }

    public Hand getHand() {
        return hand;
    }

    public void setHand(Hand hand) {
        this.hand = hand;
    }

    @Override
    public String toString() {
        return new StringBuilder("position = ").append(position)
                .append("\nnickname = ").append(nickname)
                .append("\nbalance = ").append(balance)
                .append("\nhand = ").append(hand)
                .toString();
    }

}
